﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using A2DFramework.EventService;
using A2DFramework.CacheService.CacheEvents;

namespace A2DFramework.CacheService.CacheEventHandlers
{
    public class CacheRemovedEventHandler : IEventHandler<CacheRemovedEvent>
    {
        public void Handle(CacheRemovedEvent evt)
        {
            CacheCore core = CacheManager.Instance().GetCacheCore(evt.Location);
            core.Remove(evt.Key);
        }
    }
}
